import Router from 'koa-router'
import user from './user'
import pay from './pay'
import setting from './setting'
import order from './order'
import template from './template'
import article from './article'

const router = new Router();

router.use('/user', user.routes(), user.allowedMethods())
router.use('/pay', pay.routes(), pay.allowedMethods())
router.use('/setting', setting.routes(), setting.allowedMethods())
router.use('/order', order.routes(), order.allowedMethods())
router.use('/template', template.routes(), template.allowedMethods())
router.use('/article', article.routes(), article.allowedMethods())

export default router